#include<stdio.h>
int main()
{
	int n,i,sum=1;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	sum*=2;
	printf("2^%d = %d",n,sum);
 } 
